package com.dst.smart.threadpool;


import com.dst.smart.webservice.SongServiceUtils;

public class ThreadPoolTaskSong extends ThreadPoolTask {
	String songType;
	String songUrl;
	String songRemark;

	private static final String TAG = "ThreadPoolTaskBitmap";

	private CallBack callBack;

	public ThreadPoolTaskSong(String masterMac, String masterCode,
			String songType, String songUrl, String songRemark) {
		super(masterMac, masterCode);
		this.songRemark = songRemark;
		this.songType = songType;
		this.songUrl = songUrl;
	}

	@Override
	public void run() {
		// Process.setThreadPriority(Process.THREAD_PRIORITY_LOWEST);

		try {
			String result = SongServiceUtils.instance.createSong(
					getMasterMac(), getMasterCode(), getSongType(),
					getSongUrl(), getSongRemark());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	public interface CallBack {
		public void onReady(String result);
	}

	/**
	 * @return the songType
	 */
	public String getSongType() {
		return songType;
	}

	/**
	 * @return the songUrl
	 */
	public String getSongUrl() {
		return songUrl;
	}

	/**
	 * @return the songRemark
	 */
	public String getSongRemark() {
		return songRemark;
	}
}
